.PHONY: comp sim fsdb clean run

UVM_VERSION_MF=uvm-1.2
UVM_HOME=/home/synopsys/vcs-mx/O-2018.09-1/etc/$(UVM_VERSION_MF)

run: comp sim

comp:
	vcs -sverilog -full64 -timescale=1ps/1ps -f filelist -l comp.log \
	-ntb_opts $(UVM_VERSION_MF) +v2k -debug_acc+all +incdir+$(UVM_HOME)/src \
	+define+UVM_VERDI_COMPWAVE -kdb -lca
sim: 
	./simv -gui=verdi +UVM_VERDI_TRACE="UVM_AWARE+RAL+HIER+COMPWAVE" +UVM_NO_RELNOTES \
	+UVM_PHASE_TRACE +UVM_TR_RECORD +UVM_LOG_RECORD +UVM_TESTNAME=$(case) -l sim.log &

case0:
	./simv +UVM_TESTNAME=my_case0 +UVM_NO_RELNOTES -l sim.log

fsdb:
	verdi -f filelist -ssf *.fsdb &

clean:
	rm -rf *fsdb csrc novas* *.log simv* ucli.key vc_hdrs.h verdi*
